const state = () => ({
  step: 1,
  requiredForm: {},
  queryData: {},
})
const getters = {
  step: (state) => state.step,
  requiredForm: (state) => state.requiredForm,
  queryData: (state) => state.queryData,
}
const mutations = {
  setStep(state, step) {
    state.step = step
  },
  setRequiredForm(state, requiredForm) {
    state.requiredForm = requiredForm
  },
  setQueryData(state, queryData) {
    state.queryData = queryData
  },
}
const actions = {
  setStep({ commit }, step) {
    commit('setStep', step)
  },
  setRequiredForm({ commit }, requiredForm) {
    commit('setRequiredForm', requiredForm)
  },
  setQueryData({ commit }, queryData) {
    commit('setQueryData', queryData)
  },
}
export default { state, getters, mutations, actions }
